<?php
class Ecore_Rewrite_Share {	
	public static function slug($intId, $strTitle) {
		$strTitle	= trim($strTitle);
		$strTitle 	= Ecore_Function::UTF8Deaccent($strTitle);        
		return Ecore_Function::convertNoVn($strTitle) . '-SHA' . Ecore_Function::dec2Hex($intId) . '.html';
	}
	public static function link($intId, $strTitle) {
		return HOST_FRONTEND . Ecore_Rewrite_Share::slug($intId, $strTitle);
	}
}
